package tcc.wa.presenter.view.item;

/**
 * View item class for hours in advance.
 */
public class HoursInAdvanceViewItem {
	
	private int value;
	
	public HoursInAdvanceViewItem(int value) {
		this.value = value;
	}
	
	/**
	 * Gets the value.
	 *
	 * @return the value
	 */
	public int getValue() {
		return value;
	}
	
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return String.format("%s %s", value, value != 1 ? "horas" : "hora");
	}
}